<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" type="text/css" href="css/match.css">
    <!--//////////////////////////////////-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
    <script type="text/javascript" src="../hezuo/jQuery.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../static/h-ui/js/H-ui.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script>
    <!--<link rel="stylesheet" href="../../ht-css/backofficeInfo.css">-->
    <!--<link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css"/>-->
    <!--<link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css"/>-->
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css"/>
    <!--时间插件-->
    <link rel="stylesheet" type="text/css" href="../../ht-css/jedate.css" />
    <title>定价</title>
    <style>
        .rfqgoods{
            width:2000px;
        }
        #productList td input{
            height: 22px;
            line-height: 22px;
            border-radius: 2px;
            text-align: center;
            width:80%;
        }
        td.brand{
            width:50px;
        }
        td.order{
            width:34px;
        }
        td.Company input{
            width:40px;
        }
        td.rfqg_td5{
            width:80px;
        }
        td.rfqg_td9{
            width: 60px;
        }
        td.Smallplan{
            width:80px;
        }
        td.PleaseData,td.PurchaseData{
            width:136px;
        }
        td.operation,td.numberbarwq{
            width:136px;
        }
         #productList td.numberbarwq input.num_text {
            width: 40px;
            height: 20px;
        }
    </style>
</head>
<body>
<nav class="breadcrumb">订单管理<span class="c-gray en">&gt;</span>询价单管理<span class="c-gray en">&gt;</span>详情页信息
</nav>
<article class="page-container">
    <div class="bg-1 bk-gray pd-20">
<div class="main">
    <div class="line"><div class="text">询价商品信息</div><div class="status">询价单状态：待定价</div></div>
    <div class="info">
        <p>询价单号：<span id="inquiry_id"></span></p>
        <p>询价单名称：<span id="inquiry_name"></span></p>
        <p>询价时间：<span id="created_time"></span></p>
        <p style="width:400px;">收货地：<span id="collect_address"></span></p>
        <input  class="btn  radius size-S" type="button" value="操作日志" onclick="operationlog()"/><br/>
        <p style="margin-left: 12px;">询价人： <span id="linkman"></span></p>
        <p>联系电话：<span id="linkman_phone"></span></p>
        <p style="width: 336px;margin-left: -12px;">公司名称：<span id="customer_name"></span></p><br/>
        <p style="width: 336px;">询价渠道：<span id="platform"></span></p><br/>
        <p class="qita"><span class="span1">其他说明：</span><span id="other_explain" class="span2"></span></p>
        <div style="clear:both"></div>
        <p><span style="color: #dd0000">*</span>要求到货时间：<input class="workinput wicon input-text radius" id="timemin" style="width: 129px;"  placeholder="要求到货时间" readonly></p>
        <p style="width: 254px;"><span style="color: #dd0000">*</span>要求采购回复时间：<input class="workinput wicon input-text radius" id="timemax" onclick="timeSetMin(this)"  style="width: 129px;"  placeholder="要求采购时间" readonly></span></p>
    </div>
    <div class="add">内部备注：<input type="text" id="remarks" value=""><input type="submit" value="备注" id="addRemarks" class="btn1"></div>
    <table cellspacing="0" cellpadding="0" border="0" id="remarkTable" class="rfq" style="margin-bottom: 20px">
        <thead><tr class="rfq_h"><td class="td1">姓名</td><td class="td2">备注信息</td><td class="td3">时间</td><td class="td4">操作</td></tr></thead>
        <tbody id="remarksList"></tbody>
    </table>
    <div class="add">报价单说明:<input type="text" id="offer_value" value=""><input type="submit" value="备注" id="addoffer_value" class="btn1"></div>
    <table cellspacing="0" cellpadding="0" border="0" id="offer_table" class="rfq">
        <thead><tr class="rfq_h"><td class="td1">姓名</td><td class="td2">备注信息</td><td class="td3">时间</td><td class="td4">操作</td></tr></thead>
        <tbody id="offer_list"></tbody>
    </table>
    <div class="line line1"><div class="text">询价商品清单</div></div>
    <ul id="fujian" class="fujian">
        <!--<li>附件1：<p><span>QQ图片123123323.jpg（7.33k）</span><a href="#">查看</a></p></li>
        <li>附件2：<p><span>QQ图片123123323.jpg（7.33k）</span><a href="#">查看</a></p></li>-->
    </ul>

    <div class="big-table">
    <table cellspacing="0" cellpadding="0" border="0" class="rfqgoods">
        <thead>
        <tr class="rfqg_h">
            <td class="rfqg_td1">序号</td>
            <td class="rfqg_td2">商品编码</td>
            <td class="rfqg_td3">商品名称</td>
            <td class="rfqg_td4"><span style="color: #dd0000">*</span>平台商品名称</td>
            <td class="rfqg_td5">分类</td>
            <td class="rfqg_td6">品牌</td>
            <td class="rfqg_td7">商品描述</td>
            <td class="rfqg_td8">订货要求</td>
            <td class="rfqg_td9">成本价</td>
            <td class="rfqg_td10">价格</td>
            <td class="rfqg_td11"><span style="color: #dd0000">*</span>数量</td>
            <td class="rfqg_td12"><span style="color: #dd0000">*</span>单位</td>
            <td class="rfqg_td13">小计</td>
           <!-- <td class="rfqg_td14">要求到货时间</td>
            <td class="rfqg_td15">要求采购回复时间</td>-->
            <td class="rfgq_td16">交货期(天)</td>
            <td class="rfgq_td18">报价说明</td>
            <td class="rfgq_td18">异常询价</td>
            <td class="rfgq_td18">异常询价备注</td>
            <td class="rfqg_td17">操作</td>
        </tr>
        </thead>
        <tbody id="productList">
        <tr>
           <!-- <td class="rfqg_td1">1</td>
            <td class="rfqg_td2">123123123123</td>
            <td class="rfqg_td3">阿斯顿咖啡机范德......</td>
            <td class="rfqg_td4">阿斯顿咖啡机范德......</td>
            <td class="rfqg_td5"><input type="text"></td>
            <td class="rfqg_td6"><input type="text"></td>
            <td class="rfqg_td7">阿斯顿咖啡机范德......</td>
            <td class="rfqg_td8"><input type="text" value="12"></td>
            <td class="rfqg_td9">&yen;1231.00</td>
            <td class="rfqg_td10"><input type="text" value="12"></td>
            <td class="rfqg_td11"><input type="text" value="个"></td>
            <td class="rfqg_td12">&yen;1231.00</td>
            <td class="rfqg_td13"><input type="text" value="2012-11-11 19:11:11"></td>
            <td class="rfqg_td14"><input type="text" value="2012-11-11 19:11:11"></td>
            <td class="rfqg_td15"><a href="#">匹配商品</a><a href="#">删除</a></td>-->
        </tr>
        </tbody>
    </table>

    </div>
    <div class="bottom bottomBtn">
    <input id="addProduct" style="margin-left: 10px;margin-right: 50%;" class="p2" type="submit" value="+添加商品"/>
        <a href = "javascript:void(0);" style=" padding: 0px 10px;  float: left;height: 30px;line-height: 30px;background: #FFFFFF;border: 1px solid #D3D3D3;border-radius: 2px;margin-left: 20px;margin-top: 10px;" id="temporarySelect"  onclick="Preservation(1,'export')">导出临采商品</a>
    <!--<input id="release" class="p3" type="submit" onclick="Preservation(10)" value="释放"/>-->
    <input id="save" class="p4" type="submit" value="保存" onclick="Preservation(1)"/> <!--onclick="SavedSuccessfully()"-->
        <input id="return" class="p5" type="submit" value="退回"/>
    <input id="quotationCompletion" class="p7" type="submit" onclick="Preservation(2)" value="报价完成"/>
</div>
</div>
<!--//////////////完成报价/////////////////-->
<div id="CompleteTheQuotation" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
            <div class="modal-header"  >
                <h3 class="modal-title"><b>提示</b></h3>
                <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
            </div>
            <div class="modal-body">
                <div style="margin-top:74px;"align="center">
                  <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"><span id="notQuoted"></span><strong>您确定要完成报价吗?</strong></span>
                </div>
                <div style="margin-top: 83px" align="center">
                    <button id="#hideCompleteTheQuotation" class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">确定</button>
                    <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 81px; height:33.8px;border-radius: 4px;">返回</button>
                </div>
            </div>

        </div>
    </div>
</div>
<!--//////////////报价完成/////////////////-->
        <div id="CompleteQuotationSuccess" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
             <div class="modal-dialog">
                 <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
                     <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                         <span style="font-size: 18px;color: #333333;letter-spacing: 0;">询价单报价完成！</span>
                     </div>
                 </div>
             </div>
        </div>
<!--//////////////撤销/////////////////-->
<div id="Undo" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
            <div class="modal-header"  >
                <h3 class="modal-title"><b>提示</b></h3>
                <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
            </div>
            <div class="modal-body">
                <div style="margin-top:74px;"align="center">
                    <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"> <strong>该询价单已撤销!</strong></span>
                </div>
                <div style="margin-top: 83px" align="center">
                    <button class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">确定</button>
                </div>
            </div>
        </div>
    </div>
</div>
<!--//////////////存在临采商品/////////////////-->
<div  class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
            <div class="modal-header"  >
                <h3 class="modal-title"><b>提示</b></h3>
                <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
            </div>
            <div class="modal-body">
                <div style="margin-top:74px;"align="center">
                    <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"> <strong>询价单存在临采商品，将待定价，您确定吗？</strong></span>
                </div>
                <div style="margin-top: 83px" align="center">
                    <button class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">确定</button>
                    <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 81px; height:33.8px;border-radius: 4px;">返回</button>
                </div>
            </div>

        </div>
    </div>
</div>
<!--//////////////存在临采商品/////////////////-->
<div  class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
            <div class="modal-header"  >
                <h3 class="modal-title"><b>提示</b></h3>
                <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
            </div>
            <div class="modal-body">
                <div style="margin-top:74px;"align="center">
                    <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"> <strong>您还有<span style="color: #003700;">3个</span>商品未报价，您确定要完成报价吗？</strong></span>
                </div>
                <div style="margin-top: 83px" align="center">
                    <button class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">确定</button>
                    <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 81px; height:33.8px;border-radius: 4px;">返回</button>
                </div>
            </div>

        </div>
    </div>
</div>
<!--//////////////询价单退回原因/////////////////-->
<!--<input onclick="one()" value="退回原因" type="button">-->
<div id="ReturnReason" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
            <div class="modal-header"  >
                <h3 class="modal-title"><b>提示</b></h3>
                <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
            </div>
            <div class="modal-body">
                <div style="margin-top:31px;">
                 <div style="float: left;margin-left: 29px">询价单退回原因：</div><span><textarea id="back_reason" style="border: 1px solid #E4E6E8;border-radius: 2px;width: 361px;height: 117px;resize:none;"></textarea></span>
                </div>
                <div style="margin-top: 26px" align="center">
                    <button id="returnModalBtn" class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">退回</button>
                    <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 81px; height:33.8px;border-radius: 4px;">返回</button>
                </div>
            </div>

        </div>
    </div>
</div>
<!--//////////////存在异常/////////////////-->
<div id="" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:326px;width: 550px;margin-top:200px">
            <div class="modal-header"  >
                <h3 class="modal-title"><b>提示</b></h3>
                <a class="close"  data-dismiss="modal" aria-hidden="true" >×</a>
            </div>
            <div class="modal-body">
                <div style="margin-top:74px;"align="center">
                    <span align="center" style="font-size: 18px;color: #333333;letter-spacing: 0;"> <strong>您要购买的商品存在异常或库存不足的情况，<br>请您联系客服进行处理</strong></span>
                </div>
                <div style="margin-top: 83px" align="center">
                    <button class="btn btn-primary" style="width: 81px; height:33.8px;border-radius: 4px;">联系客服</button>
                    <button class="btn" data-dismiss="modal" aria-hidden="true" style="margin-left:18px;width: 225px; height:33.8px;border-radius: 4px;">将已有库存商品生成采购订单</button>
                </div>
            </div>

        </div>
    </div>
</div>

<!--//////////////释放成功/////////////////-->
<div id="ReleasedSuccessfully" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
            <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                <span style="font-size: 18px;color: #333333;letter-spacing: 0;">定价单释放成功</span>
            </div>
        </div>
    </div>
</div>
<!--//////////////临采商品成功/////////////////-->
        <div id="TemporarySelectSuccessfully" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
             <div class="modal-dialog">
                 <div class="modal-content radius" style="height:87px;width: 257px;margin-top:50%;margin-left: 100px">
                     <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                         <span style="font-size: 18px;color: #333333;letter-spacing: 0;">商品已全部匹配成功，请选择报价完成</span>
                     </div>
                 </div>
             </div>
        </div>
<!--//////////////修改成功/////////////////-->
<div id="SuccessfullyModified" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
            <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                <span style="font-size: 18px;color: #333333;letter-spacing: 0;">询价单修改成功</span>
            </div>


        </div>
    </div>
</div>
<!--//////////////b保存成功/////////////////-->
<div id="SavedSuccessfully" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
    <div class="modal-dialog">
        <div class="modal-content radius" style="height:60px;width: 257px;margin-top:50%;margin-left: 100px">
            <div align="center" class="modal-header" style="box-shadow: 0 2px 17px 12px rgba(0,0,0,0.10), 0 2px 17px 12px rgba(0,0,0,0.10);border-radius: 8px;"  >
                <span style="font-size: 18px;color: #333333;letter-spacing: 0;">询价单保存成功</span>
            </div>
        </div>
    </div>
</div>
    </div></article>
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--时间组件-->
<script type="text/javascript" src="../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../ht-js/xunjiadan/fixPrice.js?rev=@@hash"></script>
<script>
/*    $(function () {
        function timeSet(startEl,endEl,timeFormat){
            /!*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*!/
            /!*时间设置*!/
            var thisMaxTime = $.nowDate().substring(0,$.nowDate().length-8)+"23:59:59";
            var start = {
                format: timeFormat,
                maxDate: thisMaxTime,
                okfun: function(obj){
                    end.minDate = obj.val.substring(0,obj.val.length-5)+"00:00:00"; //开始日选好后，重置结束日的最小日期
                }
            };
            var end = {
                format: timeFormat,
                maxDate: thisMaxTime,
                okfun: function(obj){
                    start.maxDate = obj.val.substring(0,obj.val.length-5)+"23:59:59"; //将结束日的初始值设定为开始日的最大日期
                }
            };
            $.jeDate(startEl,start);
            $.jeDate(endEl,end);
        }
        timeSet("#timemin","#timemax","YYYY-MM-DD hh:mm");
    })*/
</script>
<script>
    //时间设置
    $(function () {
        function timeSet(startEl,timeFormat){
            var start = {
                format: "YYYY-MM-DD",
                minDate:getNowDate(),
                isClear:false,                               //是否显示清空
                isToday:false,
            };

            $.jeDate(startEl,start);
        }
        timeSet("#timemin","YYYY-MM-DD");

        function timeSet2(startEl,timeFormat){
            /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
            /*时间设置*/
            var thisMaxTime = $.nowDate().substring(0,$.nowDate().length-8)+"23:59:59";
            var start = {
                format: 'YYYY-MM-DD hh:mm:ss',
                minDate: $.nowDate(0).substring(0,$.nowDate().length-8)+"00:00:00",
                clearfun:function(val) {
                    start.minDate =$.nowDate().substring(0,$.nowDate().length-8)+"00:00:00";
                    start.maxDate ="2099-12-31 23:59:59";
                    end.minDate="1900-01-01 00:00:00";
                    end.maxDate ="2099-12-31 23:59:59";
                },
            };

            $.jeDate(startEl,start);
        }
        timeSet2("#timemax","YYYY-MM-DD hh:mm:ss");
    })
    function getNowDate() {
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth()+1;
        if(month<10){
            month = '0'+month;
        }
        var day = date.getDate()+1;
        if(day<10){
            day = '0'+day;
        }
        var hours = date.getHours();
        if(hours<9){
            hours = '0'+hours;
        }
        var minutes = date.getMinutes();
        if(minutes<9){
            minutes = '0'+minutes;
        }
        var seconds = date.getSeconds();
        if(seconds<9){
            seconds = '0'+seconds
        }
        return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
    }

</script>
</body>
</html>